import { defineComponent } from "vue";
import styles from "./dotStateTitle.module.less";

// 圆点
export const CircleStateTitle = defineComponent({
  props: {
    title: {
      type: String,
      default: "",
    },
    type: {
      type: String,
      default: "success",
    }
  },
  setup(props: any) {
    const CircleStateTitle = () => (
      <div class={styles[props.type]}>{props.title}</div>
    )
    return () => (
      <CircleStateTitle />
    )
  },
})
